primes.out 868 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. Sequence
  2. Sequence
  3. Sequence
  4. Sequence
  5. Sequence
  6. ;
  7. Assign
  8. Identifier count
  9. Integer 1
  10. Assign
  11. Identifier n
  12. Integer 1
  13. Assign
  14. Identifier limit
  15. Integer 100
  16. While
  17. Less
  18. Identifier n
  19. Identifier limit
  20. Sequence
  21. Sequence
  22. Sequence
  23. Sequence
  24. Sequence
  25. ;
  26. Assign
  27. Identifier k
  28. Integer 3
  29. Assign
  30. Identifier p
  31. Integer 1
  32. Assign
  33. Identifier n
  34. Add
  35. Identifier n
  36. Integer 2
  37. While
  38. And
  39. LessEqual
  40. Multiply
  41. Identifier k
  42. Identifier k
  43. Identifier n
  44. Identifier p
  45. Sequence
  46. Sequence
  47. ;
  48. Assign
  49. Identifier p
  50. NotEqual
  51. Multiply
  52. Divide
  53. Identifier n
  54. Identifier k
  55. Identifier k
  56. Identifier n
  57. Assign
  58. Identifier k
  59. Add
  60. Identifier k
  61. Integer 2
  62. If
  63. Identifier p
  64. If
  65. Sequence
  66. Sequence
  67. ;
  68. Sequence
  69. Sequence
  70. ;
  71. Prti
  72. Identifier n
  73. ;
  74. Prts
  75. String " is prime\n"
  76. ;
  77. Assign
  78. Identifier count
  79. Add
  80. Identifier count
  81. Integer 1
  82. ;
  83. Sequence
  84. Sequence
  85. Sequence
  86. ;
  87. Prts
  88. String "Total primes found: "
  89. ;
  90. Prti
  91. Identifier count
  92. ;
  93. Prts
  94. String "\n"
  95. ;