paste bin
Author
Language
Python
Plain text
Accesslog
Action script
Ada
Apache
Arduino
Armasm
Autohotkey
Awk
Bash
Basic
Brainfuck
C
Clojure
Cmake
C++
C#
css
D
Delphi
Dockerfile
Erlang
Fortran
F#
Gauss
Go
Gradle
Graphql
Groovy
Haskell
Ini
Java
JavaScript
json
Julia
Kotlin
Lasso
LaTeX
Leaf
lisp
llvm
Lua
Makefile
Markdown
Mathematica
Matlab
Nginx
Objective-C
Ocaml
Oxygene
Perl
PgSQL
php
Powershell
Processing
Profile
Properties
Puppet
Purebasic
Q
QML
R
Ruby
Rust
Scala
Scheme
Scilab
Shell
Smalltalk
SQL
Swift
Typescript
VB.NET
VB Script
Verilog
Vim
Wasm
x86asm
Xml
Xquery
Yaml
source code:
def mirrorNum(x): return int(str(x)[::-1]) UPBD=10003 isPrime = [True for _ in range(UPBD)] isPrime[0]=False isPrime[1]=False for i in range(UPBD): if isPrime[i]==False: continue k=i*i while k<UPBD: isPrime[k]=False k+=i a,b = map(int,input().split()) count=0 for i in range(a,b+1): if isPrime[i] and isPrime[mirrorNum(i)]: count+=1; print(count)
comment: